/*
 * Created on Feb 10, 2005
 * Created by dfhuynh
 */
package edu.mit.simile.longwell;

import com.hp.hpl.jena.rdf.model.Model;

/**
 * @author dfhuynh
 */
public class ProfileListenerBase implements IProfileListener {
	/* (non-Javadoc)
	 * @see edu.mit.simile.longwell.IProfileListener#onBeforeAdd(com.hp.hpl.jena.rdf.model.Model)
	 */
	public void onBeforeAdd(Model model) {
		onBeforeChange(model);
	}

	/* (non-Javadoc)
	 * @see edu.mit.simile.longwell.IProfileListener#onAfterAdd(com.hp.hpl.jena.rdf.model.Model)
	 */
	public void onAfterAdd(Model model) {
		onAfterChange(model);
	}

	/* (non-Javadoc)
	 * @see edu.mit.simile.longwell.IProfileListener#onFailingAdd(com.hp.hpl.jena.rdf.model.Model)
	 */
	public void onFailingAdd(Model model) {
		onFailingChange(model);
	}

	/* (non-Javadoc)
	 * @see edu.mit.simile.longwell.IProfileListener#onBeforeRemove(com.hp.hpl.jena.rdf.model.Model)
	 */
	public void onBeforeRemove(Model model) {
		onBeforeChange(model);
	}

	/* (non-Javadoc)
	 * @see edu.mit.simile.longwell.IProfileListener#onAfterRemove(com.hp.hpl.jena.rdf.model.Model)
	 */
	public void onAfterRemove(Model model) {
		onAfterChange(model);
	}

	/* (non-Javadoc)
	 * @see edu.mit.simile.longwell.IProfileListener#onFailingRemove(com.hp.hpl.jena.rdf.model.Model)
	 */
	public void onFailingRemove(Model model) {
		onFailingChange(model);
	}

	protected void onBeforeChange(Model model) {
	}
	
	protected void onAfterChange(Model model) {
	}
	
	protected void onFailingChange(Model model) {
	}
}
